package com.jike.shop.cloud.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * @author: lql
 * @date: 2022/7/10 22:06
 * @description:
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@Accessors(chain = true)
@TableName(value = "shop_cart")
public class ShopCartEntity implements Serializable {

    @ApiModelProperty(name = "购物车id", notes = "")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(name = "用户id", notes = "")
    @TableField(value = "user_id")
    private String userId;

    @ApiModelProperty(name = "商品id", notes = "")
    @TableField(value = "product_id")
    private Long productId;

    @ApiModelProperty(name = "商品类型id", notes = "")
    @TableField(value = "product_sku_id")
    private String productSkuId;

    @ApiModelProperty(name = "商品数量", notes = "")
    @TableField(value = "product_num")
    private Integer productNum;

    @ApiModelProperty(name = "商品价格", notes = "")
    @TableField(value = "product_price")
    private Double productPrice;

    @ApiModelProperty(name = "状态", notes = "")
    @TableField(value = "status")
    private String status;

    @ApiModelProperty(name = "加购时间", notes = "")
    @TableField(value = "create_date")
    private Date createDate;

    @ApiModelProperty(name = "更新时间", notes = "")
    @TableField(value = "update_date")
    private Date updateDate;

}
